package com.vcc.service.client.vo.userCard;

import com.vcc.data.entity.UserCard;
import com.vcc.service.client.vo.cardholder.CardholderVo;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;
import java.math.BigDecimal;

@Data
@Setter
@Getter
@ToString
public class UserCardInfoVo implements Serializable {

    private String cardNumber;

    private String vcc;

    private String expiry;

    private String cardType;

    private BigDecimal usableQuota;

    private BigDecimal transactionLimit;

    private String currencyCode;

    private CardholderVo cardholderVo;

    public UserCardInfoVo(){}

    public UserCardInfoVo(UserCard userCard, CardholderVo cardholderVo){
        this.cardNumber = userCard.getCardNumber();
        this.vcc = userCard.getVcc();
        this.expiry = userCard.getExpiry();
        this.cardType = userCard.getCardType();
        this.usableQuota = userCard.getUsableQuota();
        this.transactionLimit = userCard.getTransactionLimit();
        this.currencyCode = userCard.getCurrencyCode();
        this.cardholderVo = cardholderVo;
    }

}
